<?php

namespace app\shop\controller;

use app\shop\library\ShopAuth;
use app\shop\logic\PaidanLogic;
use app\shop\logic\PlayLogic;
use think\response\Json;

class PaidanController extends BaseController
{

    public function __construct()
    {
        parent::__construct();

        $this->logic = new PaidanLogic();
    }
    protected array $noNeedLogin = [];

    public function list(): Json
    {
        $params = $this->postInput(true);
        $user = ShopAuth::instance()->getUser();
        $params['user_id'] = $user->id;
        $result = $this->logic->list($params);
        return $this->success($result);
    }
}